import request from '/@/utils/request'
import { prefix } from '/@/api/sys'

//创建协同文档
export function createFile(data) {
    return request({
        url: 'work-file-attach/collaborative/createFile',
        method: 'post',
        headers:{
            'Content-Type': 'multipart/form-data'
        },
        data
    })
}

//获取权限配置列表
export function pageList(data) {
    return request({
        url: prefix + '/cooperate/pageList',
        method: 'post',
        data
    })
}

//修改权限配置
export function update(data) {
    return request({
        url: prefix + '/cooperate/update',
        method: 'post',
        data
    })
}

//通过文件记录ID获取协同文档权限
export function getByFileLogId(id) {
    return request({
        url: prefix + '/cooperate/getByFileLogId/' + id,
        method: 'get',
    })
}
